package com.xiaoyu.lanling.feature.chat.data.teast

import com.xiaoyu.base.event.NoReceiverJsonEvent
import com.xiaoyu.base.net.RequestCreator
import com.xiaoyu.lanling.common.config.HttpConfig
import com.xiaoyu.lanling.event.chat.tease.QuickStatementsEvent

class TeaseData {

    fun increaseFrequency(id: String) {
        RequestCreator.create<NoReceiverJsonEvent>(Any(), NoReceiverJsonEvent::class.java)
                .setRequestUrl(HttpConfig.LANLING_QUICK_STATEMENT_FREQUENCY)
                .addQueryData("id", id)
                .enqueue()
    }

    fun quickStatements(requestTag: Any) {
        RequestCreator.create<QuickStatementsEvent>(requestTag, QuickStatementsEvent::class.java)
                .setRequestUrl(HttpConfig.LANLING_QUICK_STATEMENTS)
                .enqueue()
    }
}